// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import '../static/layui/css/layui.css'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'


Vue.config.productionTip = false
Vue.use(ElementUI)


/* eslint-disable no-new */
//全局配置axios
import axios from 'axios'
axios.defaults.withCredentials=true;
Vue.prototype.axios = axios;

var host="http://qidian.natapp1.cc";
Vue.prototype.host=host;

if(navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion .split(";")[1].replace(/[ ]/g,"")=="MSIE6.0" || navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion .split(";")[1].replace(/[ ]/g,"")=="MSIE7.0" || navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion .split(";")[1].replace(/[ ]/g,"")=="MSIE8.0" || navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion .split(";")[1].replace(/[ ]/g,"")=="MSIE9.0")
{
alert("您的浏览器版本过低，请下载IE9以上版本");
}

// var browser = getBrowserInfo() ;

// var verinfo = (browser+"").replace(/[^0-9.]/ig,""); 
// alert(verinfo); 

new Vue({
  el: '#app',
  router,
  template: '<App/>',
  components: { App }
})
